import request from '@/utils/request'

// 意见反馈列表
export function getOpinion(data) {
  return request({
    url: '/api/companyEmployeeOpinion/listOpinions',
    method: 'get',
    params: data
  })
}

// 通过id获取详情
export function getByOpinionId(id) {
  return request({
    url: '/api/companyEmployeeOpinion/getByOpinionId/' + id,
    method: 'get'
  })
}

// 保存意见反馈
export function addOpinion(data) {
  return request({
    url: '/api/companyEmployeeOpinion/addOpinion',
    method: 'post',
    data: data
  })
}
